package util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
	
	

		@SuppressWarnings("deprecation")
		public static int getAge (Date src) {
		Date d=new Date();
		
		
		int n=src.getYear();
		@SuppressWarnings("deprecation")
		int n1=d.getYear()	;
		System.out.println(n1-n);
		return 10;
		
		
		
	
		//TODO
		}
		
		
		
		public static String getDateByMonthInit (String string) {
			
			
			
			String str="2019-09-01 00:00:00";
			return str;
			
			
			
			//TODO
			}
		
		
		
		
		public static int getDaysByFuture (String str) {
		
			str="2020-09-16";
			
			
			return 365;
			//TODO
			
			
			}
		
		
		public static int getDaysByDeparted (String str) {
			return 10;
			//TODO
			}

}

